const sync.mutexLocked
16 uses
sync (current package)
mutex.go#L46: mutexLocked = 1 << iota // mutex is locked
mutex.go#L83: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L100: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L107: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L126: if old&(mutexLocked|mutexStarving) == mutexLocked && runtime_canSpin(iter) {
mutex.go#L142: new |= mutexLocked
mutex.go#L144: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L151: if starving && old&mutexLocked != 0 {
mutex.go#L163: if old&(mutexLocked|mutexStarving) == 0 {
mutex.go#L179: if old&(mutexLocked|mutexWoken) != 0 || old>>mutexWaiterShift == 0 {
mutex.go#L182: delta := int32(mutexLocked - 1<<mutexWaiterShift)
mutex.go#L219: new := atomic.AddInt32(&m.state, -mutexLocked)
mutex.go#L228: if (new+mutexLocked)&mutexLocked == 0 {
mutex.go#L240: if old>>mutexWaiterShift == 0 || old&(mutexLocked|mutexWoken|mutexStarving) != 0 {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |